﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="valid" uri="http://www.yst.org/tags/valid" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
	<base href="<%=basePath%>">
	<meta http-equiv="content-type" content="text/html; charset=UTF-8">
	<meta charset="utf-8">
	<title>银商通支付通信前置系统</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, user-scalable=no">
	<meta name="description" content="银商通支付通信前置系统">
	<meta name="author" content="sheungxin">
	<!-- STYLESHEETS --><!--[if lt IE 9]><script src="js/flot/excanvas.min.js"></script><script src="js/flot/html5.js"></script><script src="js/css3-mediaqueries.js"></script><![endif]-->
	<link rel="stylesheet" type="text/css" href="css/cloud-admin.min.css" >
	<link rel="stylesheet" type="text/css"  href="css/themes/default.min.css" id="skin-switcher" >
	<link rel="stylesheet" type="text/css"  href="css/responsive.min.css" >
	
	<link href="font-awesome/css/font-awesome.min.css" rel="stylesheet">
	<!-- JQUERY UI-->
	<link rel="stylesheet" type="text/css" href="js/jquery-ui-1.10.3.custom/css/custom-theme/jquery-ui-1.10.3.custom.min.css" />
	<!-- TYPEAHEAD -->
	<link rel="stylesheet" type="text/css" href="js/typeahead/typeahead.css" />
	<!-- SELECT2 -->
	<link rel="stylesheet" type="text/css" href="js/select2/select2.min.css" />
	<!-- UNIFORM -->
	<link rel="stylesheet" type="text/css" href="js/uniform/css/uniform.default.min.css" />
	<!-- JQUERY UI-->
	<link rel="stylesheet" type="text/css" href="js/jquery-ui-1.10.3.custom/css/custom-theme/jquery-ui-1.10.3.custom.min.css" />
</head>
<body  ng-app="qzchannelApp" ng-controller="qzchannelController">
			<div class="container">
				<div class="row">
					<div id="content" class="col-lg-12">
						<!-- PAGE HEADER-->
						<div class="row">
							<div class="col-sm-12">
								<div class="page-header">
									<!-- STYLER -->
									
									<!-- /STYLER -->
									<!-- BREADCRUMBS -->
									<ul class="breadcrumb">
										<li>
											<i class="fa fa-th-large"></i>
											<a href="manage/channel/list.jsp" target="user_main_iframe">机构管理</a>
											<li>机构管理修改</li>
										</li>
									</ul>
								</div>
							</div>
						</div>
						<!-- /PAGE HEADER -->
						
						<!-- EXPORT TABLES -->
						<div class="row">
							<div class="col-md-12">
								<!-- BOX -->
								<div class="box border primary">
									<div class="box-title">
										<h4><i class="fa fa-bars"></i></h4>
										<div class="tools hidden-xs">
											<a href="javascript:;" class="reload" ng-click="refreshData()">
												<i class="fa fa-refresh"></i>
											</a>
											<a href="javascript:;" class="collapse">
												<i class="fa fa-chevron-up"></i>
											</a>
										</div>
									</div>
									<div class="box-body big">
										<form class="form-horizontal" role="form" id="myForm" name="myForm">
										  <div class="form-group">
											<label class="col-sm-3 control-label" for="name">机构名称</label>
											<div class="col-sm-9">
											  <input type="text" id="name" name="name" class="form-control" ng-model="qzmsg.name" value="{{qzmsg.name}}">
											  	 <!-- <label ng-repeat="qzname in nameList">
													<span class="help-block" generated="true" style="color:red">
														<div ng-show="{{qzname.name == qzmsg.name}}">
															机构名称已存在
														</div>	
													</span>
												</label> -->
											</div>
										  </div>
										  <div class="form-group">
											<label class="col-sm-3 control-label" for="code">机构编码</label>
											<div class="col-sm-9">
											  <input type="text" id="code" name="code" class="form-control"  ng-model="qzmsg.code" value="{{qzmsg.code}}">
											  	<!-- <label ng-repeat="qzcode in codeList">
											  		<span class="help-block" generated="true" style="color:red">
											  			<div ng-show="{{qzcode.code == qzmsg.code}}">
															机构编码已存在
														</div>
													</span>		
											  	</label>-->
											</div>
										  </div>
										  <div class="form-group">
											<label class="col-sm-3 control-label" for="memo">机构描述</label>
											<div class="col-sm-9">
											  <input type="text" id="memo" name="memo" class="form-control" ng-model="qzmsg.memo" value="{{qzmsg.memo}}">
											</div>
										  </div>
										  <div class="form-group">
											<label class="col-sm-3 control-label" for="status">状态</label>
											<div class="col-sm-9">
												<label class="radio-inline"><input type="radio" class="uniform" name="status" id="status" value="1" ng-model="qzmsg.status" ng-checked="qzmsg.status==1">锁定</label>
												<label class="radio-inline"><input type="radio" class="uniform" name="status" id="status" value="2" ng-model="qzmsg.status" ng-checked="qzmsg.status==2">启用</label>
											</div>
										  </div>
										  <div class="form-group">
											<label class="col-sm-3 control-label" for="buscode">业务分类</label>
											<div class="col-sm-9">
												<label ng-repeat="relbus in relateBusiList">
												
											  	<!--  <input type="checkbox" name="bus" id="{{relbus.businessId}}" ng-checked="relbus.channelId!=null" value="{{relbus.businessId+ ';' +relbus.name}}" ng-click="busclick(relbus.businessId +','+ relbus.name +','+ bus.code)" />{{relbus.businessname}}&nbsp; -->
											  	<input type="checkbox" name="business[]"  value="{{relbus.businessId}}" ng-checked="relbus.channelId!=null"  ng-click="toggleSelection(relbus.businessId)"> {{relbus.businessname}}&nbsp;&nbsp;
												</label>
											</div>
										  </div>
										  <div class="form-group">
											<div class="col-sm-offset-3 col-sm-9">
											  <button type="button" class="btn btn-success" ng-click="chSave()">保存</button>
											  <button type="button" class="btn" ng-click="chReset()">重置</button>
											  <button type="button" class="btn btn-warning cancel" ng-click="chCancle()">返回</button>
											</div>
										  </div>
										 </form>
									</div>
								</div>
								<!-- /BOX -->
							</div>
						</div>
						<!-- /EXPORT TABLES -->
						<div class="footer-tools">
							<span class="go-top">
								<i class="fa fa-chevron-up"></i> Top
							</span>
						</div>
					</div><!-- /CONTENT-->
				</div>
			</div>  
			<script src="js/jquery/jquery-2.0.3.min.js"></script>
	<!-- JQUERY UI-->
	<script src="js/jquery-ui-1.10.3.custom/js/jquery-ui-1.10.3.custom.min.js"></script>
	<!-- BOOTSTRAP -->
	<script src="bootstrap-dist/js/bootstrap.min.js"></script>
	<script src="js/jquery-validate/jquery.validate.min.js"></script>
	<script src="js/jquery-validate/myvalidate.js"></script>
	<!-- SLIMSCROLL -->
	<script type="text/javascript" src="js/jQuery-slimScroll-1.3.0/jquery.slimscroll.min.js"></script><script type="text/javascript" src="js/jQuery-slimScroll-1.3.0/slimScrollHorizontal.min.js"></script>
	<!-- BLOCK UI -->
	<script type="text/javascript" src="js/jQuery-BlockUI/jquery.blockUI.min.js"></script>
	<!-- COOKIE -->
	<script type="text/javascript" src="js/jQuery-Cookie/jquery.cookie.min.js"></script> 
	<!-- TYPEHEAD -->
	<script type="text/javascript" src="js/typeahead/typeahead.min.js"></script>
	<!-- AUTOSIZE -->
	<script type="text/javascript" src="js/autosize/jquery.autosize.min.js"></script>
	<!-- SELECT2 -->
	<script type="text/javascript" src="js/select2/select2.min.js"></script>
	<!-- UNIFORM -->
	<script type="text/javascript" src="js/uniform/jquery.uniform.min.js"></script>
	<!-- CUSTOM SCRIPT -->
	<script src="js/script.js"></script>
	<script>
		jQuery(document).ready(function() {
		   	App.init();
		});
	</script>
	<script src="js/angular.min.js"></script>
	<valid:jsValidate modelClass="com.yst.gateway.monitor.models.QzChannels" groupClass="Modify"></valid:jsValidate>
	<script src="js/modules/manage/channel/edit.js"></script>         
</body>
</html>